package com.tuanzi.loan.business.entity.collaborate;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * User: liangZongXi
 * Create time: 11:22 2019/5/9
 * Description:
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(catalog = "stat",name = "stat_collaborate_check_in")
public class StatCollaborateCheckIn extends IdentityResponse implements Serializable {

    private static final long serialVersionUID = -7733839038594516351L;

    @Id
    @Column(name="id")
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long  id;

    @Column(name="create_date")
    private Date createDate;

    @Column(name="platform")
    private String platform;

    @Column(name="product_id")
    private String productId;

    @Column(name="channel_code")
    private String channelCode;

    @Column(name="activity_id")
    private String activityId;

    @Column(name="h5_check_in_count")
    private Integer h5CheckInCount;

    @Column(name="h5_view_page_count")
    private Integer h5ViewPageCount;

    @Column(name="h5_register_count_a")
    private Integer h5RegisterCountA;

    @Column(name="h5_register_count_b")
    private Integer h5RegisterCountB;

    @Column(name="login_count")
    private Integer loginCount;

    @Column(name="app_register_count_a")
    private Integer appRegisterCountA;

    @Column(name="app_register_count_b")
    private Integer appRegisterCountB;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="update_time")
    private Date updateTime;

    @Column(name="uv_phone")
    private Integer uvPhone; //参与uv和

    @Column(name="uv_api")
    private Integer uvApi; // api 参与uv

    @Column(name="api_apply_count")
    private Integer apiApplyCount; //api进件人数

    @Column(name="api_lend_count")
    private Integer apiLendCount; //api放款人数

    @Column(name="api_lend_total_amount")
    private Integer apiLendTotalAmount; //api 放款总额度
}
